package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.base.MesScanKeysRelation;
import com.ruoyi.system.domain.base.MesSteps;
import com.ruoyi.system.domain.client.MesQualityItems;
import com.ruoyi.system.mapper.MesStepsMapper;
import com.ruoyi.system.mapper.OrdersCustomerMapper;
import com.ruoyi.system.service.IMesStepsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


/**
 * 工步Service业务层处理
 *
 * @author ruoyi
 * @date 2023-02-20
 */
@Service
public class MesStepsServiceImpl extends ServiceImpl<MesStepsMapper, MesSteps> implements IMesStepsService {

    @Autowired
    private MesStepsMapper mesStepsMapper;

    @Override
    public List<MesScanKeysRelation> selectByProductCodeAndStationCode(String operationCode) {

        List<MesScanKeysRelation> list = mesStepsMapper.selectByProductCodeAndStationCode(operationCode);
        return list;
    }

    @Override
    public List<MesQualityItems> selectByStationCode(String operationCode) {

        List<MesQualityItems> list = mesStepsMapper.selectByStationCode(operationCode);
        return list;
    }
}
